<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/5/16 0016
 * Time: 下午 17:38
 */
namespace Home\Model;
use Think\Model;
class MeetingSyqkModel extends Model{
    /*
     * 获取会议室占用情况
     */
    public function get_meeting_syqk_info($date,$room_id,$sjd){
        $where['meeting_room_id'] = $room_id;
        $where['date'] = $date;
        $where['date_modle'] = $sjd;
        $data = $this->where($where)->select();

//        foreach($data as $k=>$v){
//            $arr['meeting_room_id'] = $v['meeting_room_id'];
//            $arr['date'] = $v['date'];
//            $arr['use_time'] = $v['date_time'];
//            $data[$k]['user'] = D('meeting_notes')->field('apply,cb_bumen')->where($arr)->find();
//        }

        return $data;

    }

}